import request from '/@/utils/request'
/**
 * 登录
 * @param data 
 * @returns 
 */
export const login = (data: any) =>{
  return request.post('/sys/login',data,{
    ignoreToken: true,
    errorMessageMode: 'none'
  })
}
/**
 * 退出
 * @param data 
 * @returns 
 */
export const logout = (data: any) =>{
  return request.post('/sys/logout',data)
}

/**
 * 获取当前用户权限标识
 * @returns 
 */
export const permCode = () =>{
  return request.post('/sys/user/permCode',{})
}
/**
 * 获取当前用户信息
 * @returns 
 */
export const userInfo = () =>{
  return request.post('/sys/user/info',{})
}